<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateHealthRemindersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('c_health_reminders', function (Blueprint $table) {
            $table->increments('id')->comment('ID');
            $table->integer('user_id')->default(0)->comment('用户id');
            $table->integer('use_type')->default(0)->comment('1每隔几个小时2每隔几天3每天用药4必要时用药');
            $table->integer('numdays')->default(0)->comment('用药天数0长期');
            $table->string('name', 50)->comment('药品名称');
            $table->integer('frequency')->comment('用药频次1:一天一次2:一天两次,3一天3次,4两天一次,5两天两次6两天三次');
            $table->string('take_time')->default(0)->comment('吃药时间');
            $table->string('remark')->default(0)->comment('备注');
            $table->string('status')->default(0)->comment('提醒方式1已提醒0未提醒');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('c_health_reminders');
    }
}
